const { Add, Update, QueryById } = require('../db/dbhelper');

//新增
const viewrecordAdd = function (doc) {
  return Add('hzz_viewrecords', doc);
}

//修改
const viewrecordUpdate = function (doc) {
  return Update('hzz_viewrecords', doc);
}

//查询详情
const viewrecordInfoById = function (id) {
  return QueryById('hzz_viewrecords', id);
}

//列表
const viewrecordList = function (doc) {
  return Query('hzz_viewrecords', doc);
}

module.exports = {
  viewrecordAdd,
  viewrecordUpdate,
  viewrecordInfoById,
  viewrecordList
}